package com.atguigu.gulimail.order.web.feign;

import com.atguigu.gulimail.order.web.vo.MemberAddressVo;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

@FeignClient("gulimail-member")
@Component
public interface MemberFeign {

    @GetMapping("member/memberreceiveaddress/{memberId}/address")
    List<MemberAddressVo> getMemberAddress(@PathVariable("memberId") Long memberId);
}
